import request from '@/utils/request'
/**
 * 获取分类树形列表
 */
export function getClassifyTree(data) {
	return request({
		baseURL: '/API-ENTERPRISE-BACKEND/',
		url: '/backend/learnClassify/getClassifyTree',
		method: 'POST',
		data
	})
}
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'get',
    params: { dictCode }
  })
}

export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/questionBank/queryPage',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/questionBank/deleteById',
    method: 'post',
    data
  })
}

export function dels(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/questionBank/deleteByIds',
    method: 'post',
    data
  })
}

export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/questionBank/get',
    method: 'post',
    data
  })
}
export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/questionBank/insert',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/questionBank/update',
    method: 'post',
    data
  })
}

export function importFile(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/ttsxexam/manage/examQuestion/questionImport',
    method: 'post',
    data
  })
}
